/*
 * TestCalendar.java
 * 
 *  author: Daniel Rudigier
 *    date: 18.06.2008
 * 
 * 
 */
package ocumed.web.jsf.tests;

import java.util.Calendar;
import java.util.GregorianCalendar;
import java.util.Locale;

import junit.framework.TestCase;

/**
 * @author Daniel Rudigier
 *
 */
public class TestCalendar extends TestCase {
    
    public void testIt() {
        Calendar week = GregorianCalendar.getInstance(Locale.getDefault());        
        week.set(Calendar.DAY_OF_WEEK, week.getFirstDayOfWeek());
        
        for(int i = 0; i < 7; i++) {
            System.out.println(week.getTime());
            week.roll(Calendar.DAY_OF_YEAR, true);
        }
    }

}
